<?php
class lienhe_model extends CI_Model
{
	function __construct(){
        parent::__construct();
	}
	
	function contacts()
	{
		$data = array(
			'cusmail' => $this->input->post('email') ,
			'cusname' => $this->input->post('fullname'),
			'subject' => $this->input->post('subject'),
			'content' => $this->input->post('contents') ,
			'datesend' =>  date("Y-m-d H:i:s") ,
			) ;
			if($this->db->insert('contacts',$data))
			{
				return true ;
			}
			else
			{
				return false ;	
			}

	}

	


}
?>
